class CreateUnits < ActiveRecord::Migration
  def self.up
    create_table :units do |t|
      t.integer               :issue_id
      t.integer               :user_id
      t.string                :unit_role

      t.timestamps
    end

    add_index "units", ["issue_id"], :name => "index_units_on_issue_id"
    add_index "units", ["user_id"], :name => "index_units_on_user_id"

  end

  def self.down
    drop_table :units
  end
end
